<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/jquery-3.3.1.min.js"></script>
    <script>
        $(function(){
            $('#mybtn').click(function(){
                // console.log(this.value)
                console.log($(this).val())
            })

            $('#mybtn2').on('click',function(){
                console.log(2222)
            })
        })
    </script>
</head>
<body>
    <input type="button" id="mybtn" value="点我"> <br>
    <input type="button" id="mybtn2" value="点我2"> <br>

    
</body>
</html>